package com.fitbet.api.web.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.demo2do.core.entity.result.HttpResult;
import com.fitbet.entity.user.Wallet;

@RequestMapping("/wallets")
public class WalletController {
	
	/**
	 * 
	 * @return
	 */
	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public HttpResult view(@PathVariable Long id) {
		
		HttpResult httpResult = new HttpResult();
        
        Wallet wallet = new Wallet();
        
        // load wallet by user_id
        wallet.setBalance(17800);
          
		
        return httpResult.success()
                         .data("wallet", wallet);
		
	}
}
